package com.ruoyi.liangshi.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @Author LiuJin
 * @Date: Create in 2023-11-14 11:34
 * @Description: this class is
 */
@Data
@TableName("gd_atch_item")
public class ArchItem implements Serializable {
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;
    @JsonSerialize(using = ToStringSerializer.class)
    private Long shopId;

    private String code;

    private String name;
    @JsonSerialize(using = ToStringSerializer.class)
    private Long unitId;

    private BigDecimal stdPrice;

    private BigDecimal costPrice;
    @JsonSerialize(using = ToStringSerializer.class)
    private Long brandId;
    @JsonSerialize(using = ToStringSerializer.class)
    private Long bigClassId;
    @JsonSerialize(using = ToStringSerializer.class)
    private Long smallClassId;

    private String isEnable;

    private String atchType;

    @TableField(exist = false)
    private String brandName;

    @TableField(exist = false)
    private String unitName;
}
